package com.sskj.gocoinapp.presenter;

import com.lzy.okgo.model.Response;
import com.sskj.common.base.HttpData;
import com.sskj.gocoinapp.bean.GuideListBean;
import com.sskj.gocoinapp.http.HttpConfig;
import com.sskj.gocoinapp.ui.activity.GuideWebActivity;
import com.sskj.lib.http.JsonCallBack;


public class GuideWebActivityPresenter extends BasePresenter<GuideWebActivity> {
    public void getContent(String id) {
        httpService.getGonggaoInfo(id)
                .execute(new JsonCallBack<HttpData<GuideListBean>>() {
                    @Override
                    public void onSuccess(Response<HttpData<GuideListBean>> response) {
                        HttpData<GuideListBean> httpData = response.body();
                        if (httpData.getStatus() == HttpConfig.OK) {
                            mView.getContentSuccess(httpData.getData());
                        }
                    }
                });
    }
}
